import {get,post} from './index';
let url='http://localhost:3000'
//注册接口
export const regs = (user)=>{
    return post('/api/reg',user);
}
//登录接口
export const logins = (user)=>{
  return post('/api/login',user);
}

// export const logouts = ()=>{
//   return get(url+'/logout');
// }

export const auths = ()=>{
  return get(url+'/api/auth');
}